<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<html>
	<head>
		<title></title>
	</head>
	<body>
		<f:view>
			<h:form id="formulario">
				<h:inputText id="txtNombre" value="#{mediaData.nombre}"/><a4j:commandButton id="btnMuestra" reRender="miImagen">
				</a4j:commandButton>
			</h:form><br/><rich:panel>
				<a4j:mediaOutput cacheable="false" element="img" mimeType="image/jpg" session="true" createContent="#{imagen.paint}" id="miImagen" value="#{mediaData}"/>
			</rich:panel>
		</f:view>
	</body>	
</html>  
